package com.zh.common.listenner;


import com.zh.common.utils.TaskUtils;
import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.apache.log4j.Logger;

/**
 *
 * 节点任务完成财务核算监听类
 *
 * @auther: lds
 * @date: 2019/3/8 11:57
 */
public class FinanceTasListener implements TaskListener {

    private Logger log =Logger.getLogger(FinanceTasListener.class);

    //监听任务的事件
    @Override
    public void notify(DelegateTask delegateTask) {
        try {
            TaskUtils nextTaskUtils=new TaskUtils();
            nextTaskUtils.setFinanceAsignee(delegateTask);
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
}


